package top.usts.springframework.beans.factory;

import top.usts.springframework.beans.BeansException;

/**
 * @description:
 * @author: CJ
 * @date: 2022/2/21
 */
public interface BeanFactory {

    Object getBean(String name) throws BeansException;

    Object getBean(String name, Object... args) throws BeansException;

    <T> T getBean(String name, Class<T> requiredType) throws BeansException;

    <T> T getBean(Class<T> requiredType) throws BeansException;

}
